﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Practices.Unity;

namespace BookDownloader.Core
{
	public static class DiFacade
	{
		private static IUnityContainer container = null;

		public static IUnityContainer Container
		{
			get
			{
				if (container == null)
				{
					// if container is not set, try to create it from the configuration.
					container = new UnityContainer();
				}

				return container;
			}
		}
	}
}
